﻿using System;

namespace CoreEx.Wcf.Common
{
    /// <summary>
    /// Represents a class that is capable of determining if 
    /// a given type represents a service contract.
    /// </summary>
    public interface IServiceContractResolver
    {

        /// <summary>
        /// Determines whether the <paramref name="type"/> is a service contract.
        /// </summary>
        /// <param name="type">The target <see cref="Type"/>.</param>
        /// <returns>
        /// 	<c>true</c> if the type is a service contract,  otherwise, <c>false</c>.
        /// </returns>
        bool IsServiceContract(Type type);
    }
}
